from django import forms

class ScriptForm(forms.Form):
    name=forms.CharField(max_length=255,required=True)
    script_type=forms.CharField(max_length=10,required=True)
    desc=forms.CharField(max_length=255,required=True)
    time_out=forms.IntegerField(required=True)
    tenant_id=forms.IntegerField(required=True)
    content=forms.CharField(max_length=65535,required=False)
    content_file=forms.FileField(max_length=255,required=False)

class ScriptListForm(forms.Form):
    pageNumber=forms.IntegerField(required=False)
    pageSize=forms.IntegerField(max_value=100,required=False)
    name=forms.CharField(max_length=64,required=False)
    script_type=forms.CharField(max_length=64,required=False)